//
// Created by root on 2019/9/26.
//

#ifndef AOA_MANAGER_H
#define AOA_MANAGER_H

#include <vector>
#include <memory>
#include "HotPlug.h"
#include "PhoneBase.h"
#include "AOADev.h"
#include "headerBase.h"
#include "AOAaudio.h"

using std::vector;
class Manager {
public:
    Manager();

    virtual ~Manager();

    void sentAndroidKey();
    void quit() {
        m_bQuit = true;
    }

    void run();

    void setAoAPhoneAttach( AOAaudio * ptr);
private:
    HotPlug m_HotPlug;
    vector<PhoneBase *> m_mode;
    std::shared_ptr<AOAaudio> m_phoneAttch;
    bool m_bQuit;
};


#endif //AOA_MANAGER_H
